<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"

      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h:form>
                <p:growl id="msg" life="3000"/>
                <h1 class="title">Tipo de Selo</h1>
                <div class="row">
                    <div class="twelve columns"> 

                        <fieldset>
                            <legend> <h4 style="margin:0 0 10px 0">Cadastro</h4></legend>
                            <div class="container_24 clearfix " >
                                <p:outputLabel value="Nome: " styleClass="grid_3" />
                                <p:inputText value="#{managerTypeStamp.typeStamp.name}" styleClass="grid_8"/>
                                <div class="clear"/>
                                <p:outputLabel value="Descrição: " styleClass="grid_3"/>
                                <p:colorPicker id="popupCP" value="#{managerTypeStamp.typeStamp.color}" mode="inline"
                                               styleClass="grid_8" widgetVar="picker"/>
                            </div>
                        </fieldset>
                    </div>
                    <div class="buttonAction">
                        <p:commandButton value="Salvar" actionListener="#{managerTypeStamp.create()}"
                                         icon="ui-icon-disk" styleClass="ui-priority-primary"
                                         update="@form" />
                        <p:commandButton value="Cancelar"  icon="ui-icon-trash" />
                    </div >
                </div>
            </h:form>
        </ui:define>
    </ui:composition>
</html>